package com.stylefeng.guns.modular.system.warpper;

import com.stylefeng.guns.core.base.warpper.BaseControllerWarpper;
import org.apache.commons.lang.StringUtils;

import java.text.DecimalFormat;
import java.util.List;
import java.util.Map;

public class DbqWarpper extends BaseControllerWarpper{

	public DbqWarpper(List<Map<String, Object>> list) {
        super(list);
    }

    @Override
    public void warpTheMap(Map<String, Object> map) {
	    String content = (String)map.get("gContent");
	    if(StringUtils.contains(content,"#交易计划#")){
            map.put("gContent",StringUtils.replace(content,"#交易计划#","<font color='#EA0000'><b>#交易计划#</b></font>"));
        }
        if(StringUtils.contains(content,"#妖王猜想#")){
            map.put("gContent",StringUtils.replace(content,"#妖王猜想#","<font color='#EA0000'><b>#妖王猜想#</b></font>"));
        }
        if(StringUtils.contains(content,"#经验分享#")){
            map.put("gContent",StringUtils.replace(content,"#经验分享#","<font color='#ff7575'><b>#经验分享#</b></font>"));
        }
        if(StringUtils.contains(content,"#干货资料#")){
            map.put("gContent",StringUtils.replace(content,"#干货资料#","<font color='#ff7575'><b>#干货资料#</b></font>"));
        }
        if(StringUtils.contains(content,"#机会分享#")){
            map.put("gContent",StringUtils.replace(content,"#机会分享#","<font color='#FF0000'><b>#机会分享#</b></font>"));
        }
        if(StringUtils.contains(content,"#实时解盘#")){
            map.put("gContent",StringUtils.replace(content,"#实时解盘#","<font color='#921AFF'><b>#实时解盘#</b></font>"));
        }
    }
}
